$().ready(function () {
    $().ready(function () {
        $.ajax({
            type: "post",
            dataType:"json",
            url: "http://localhost:8080/owner/ownerAll",
            success: function (bigData) {
                if (bigData.status === 20000) {
                    for (var i in bigData.data){
                        let str = bigData.data[i];
                        $("#listman").append(
                            $("<tr></tr>").append(
                                $("<td><input type='checkbox'></input></td>" +
                                    "<td>"+str["ownerId"]+"</td>" +
                                    "<td>"+str["ownerCommunityId"]+"</td>" +
                                    "<td>"+str["ownerHouseId"]+"</td>" +
                                    "<td>"+str["ownerName"]+"</td>" +
                                    "<td><img src='."+str["ownerPic"]+"' width='50' height='30'> </td>" +
                                    "<td>"+str["ownerNo"]+"</td>" +
                                    "<td>"+str["ownerConnect"]+"</td>" +
                                    "<td>"+str["ownerWork"]+"</td>" +
                                    "<td>"+str["ownerBirth"]+"</td>" +
                                    "<td>"+str["ownerGender"]+"</td>" +
                                    "<td>"+str["ownerType"]+"</td>" +
                                    "<td>"+str["ownerRemarks"]+"</td>" +
                                    "<td>"+str["creatTime"]+"</td>" +
                                    "<td class=\"td-manage\">\n" +
                                    "                <a title=\"编辑\" href=\"javascript:;\" onclick=\"personnel_edit('编辑','personnel_add.html','4','1000','600')\"\n" +
                                    "                   class=\"ml-5\" style=\"text-decoration:none\">\n" +
                                    "                    <i class=\"layui-icon\">&#xe642;</i>\n" +
                                    "                </a>\n" +
                                    "                <a title=\"删除\" href=\"javascript:;\" onclick=\"personnel_del(this,'4')\"\n" +
                                    "                   style=\"text-decoration:none\">\n" +
                                    "                    <i class=\"layui-icon\">&#xe640;</i>\n" +
                                    "                </a></td>"
                                )
                            )
                        )
                    }
                } else {
                    alert("失败")
                }
            }
        });
    })
})